{include file="nav.php"}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>课程 <small>列表</small></h3>
                    </div>

                    <div class="title_right">
                        <div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
                            <form method="get" action="{'course/index'|admin_url}">
                            <div class="input-group">
                                <input type="text" class="form-control" placeholder="搜索..." name="keyword">
                                <span class="input-group-btn">
                                  <button class="btn btn-default" type="submit">Go!</button>
                                </span>
                            </div>
                            </form>
                        </div>
                    </div>
                </div>

                <div class="clearfix"></div>

                <div class="col-md-12 col-sm-12 col-xs-12">
                    <div class="x_panel">

                        <div class="x_content">
                                <p>
                                    <a class="btn btn-primary" href="{'course/add'|admin_url}"><i class="fa fa-plus"> 添加课程</i></a>
                                </p>
                                <div class="table-responsive">
                                    <table class="table table-striped jambo_table bulk_action">
                                        <thead>
                                        <tr class="headings">
                                            <th>
                                                <input type="checkbox" id="check-all" class="flat">
                                            </th>
                                            <th class="column-title">id </th>
                                            <th class="column-title">课程名</th>
                                            <th class="column-title">描述</th>
                                            <th class="column-title">图片 </th>
                                            <th class="column-title no-link last"><span class="nobr">操作</span>
                                            </th>
                                            <th class="bulk-actions" colspan="7">
                                                <a class="antoo" style="color:#fff; font-weight:500;">设置 (<span class="action-cnt">0</span>) <i class="fa fa-chevron-down"></i></a>
                                            </th>
                                        </tr>
                                        </thead>

                                        <tbody>
                                        {foreach $list as $key=>$item}
                                        <tr class="{if $key%2 == 0}odd{else}even{/if} pointer">
                                            <td class="a-center ">
                                                <input type="checkbox" class="flat" name="table_records">
                                            </td>
                                            <td class=" ">{$item['id']}</td>
                                            <td class=" ">{$item['name']}</td>
                                            <td class=" ">{$item['description']}</i></td>
                                            <td class=" "><img src="{$__public__}{$item['photo']}" title="{$item['name']}" style="max-width: 100px; max-height: 100px;"></td>
                                            <td class=" last">
                                                <a class="btn btn-xs btn-default" href="{'course/view'|admin_url}/{$item['id']}"><i class="fa fa-folder"></i> 查看</a>
                                                <a class="btn btn-xs btn-danger" href="{'course/destroy'|admin_url}/{$item['id']}"><i class="fa fa-trash-o"></i> 删除</a>
                                            </td>
                                        </tr>
                                        {/foreach}
                                        </tbody>
                                    </table>
                                </div>


                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
            <div class="pull-right">
                Gentelella - Bootstrap Admin Template by <a href="https://colorlib.com">Colorlib</a>
            </div>
            <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
{include file="footer.php"}